// Copyright (C) 2010 Razvan Constantin <razvan.constantin@rconst.net>
//
// This file is part of FileBow.
//
// FileBow is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// FileBow is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with FileBow.  If not, see <http://www.gnu.org/licenses/>.
//
// Test cases for TestDrive.

#include "testing/test_drive.h"

#include <gtest/gtest.h>
#include <Poco/File.h>
#include <string>

using namespace std;
using Poco::File;

namespace filebow {
namespace testing {

TEST(TestDriveTest, TestSetup) {
  TestDrive* test_drive = new TestDrive();
  string path = test_drive->path();
  EXPECT_TRUE(File(path).exists() && File(path).isDirectory());
  delete test_drive;
  EXPECT_FALSE(File(path).exists());
}

}  // namespace testing
}  // namespace filebow
